// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.

namespace Stride.Core.Quantum;

/// <summary>
/// An interface representing an object notifying changes when the value of a related node changes.
/// </summary>
public interface INotifyNodeValueChange
{
    /// <summary>
    /// Raised just before a change to the value of a related node occurs.
    /// </summary>
    event EventHandler<MemberNodeChangeEventArgs>? ValueChanging;

    /// <summary>
    /// Raised when a change to the value of a related node has occurred.
    /// </summary>
    event EventHandler<MemberNodeChangeEventArgs>? ValueChanged;
}
